package com.challenge.smsweb.studentmanage;

import com.challenge.smsbase.Controller.GenericController;
import com.challenge.smsdao.studentmanage.domain.Grade;
import com.challenge.smsservice.studentmanage.service.GradeManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author MY
 *
 * inherit public interface
 */

@RestController
@RequestMapping(value = "grade")
public class GradeController extends GenericController<Grade,Long, GradeManager> {
    GradeManager gradeManager;

    /**
     * setGradeManager
     * @param gradeManager
     */
   //method of injection interface
    @Autowired
    public void setGradeManager(GradeManager gradeManager) {
        this.gradeManager = gradeManager;
        this.manager = this.gradeManager;
    }
}
